You can use the following constants to define features of your sound component. You use some combination of these constants to set bits in the componentFlags field of a component description record, which is contained in a 'thng' resource. These bits represent the kind of data your component can receive as input, the kind of data your component can produce as output, the operations your component can perform, and the performance of your component.
#define k8BitRawIn (1 << 0) /*data flags*/
#define k8BitTwosIn (1 << 1)
#define k16BitIn (1 << 2)
#define kStereoIn (1 << 3)
#define k8BitRawOut (1 << 8)
#define k8BitTwosOut (1 << 9)
#define k16BitOut (1 << 10)
#define kStereoOut (1 << 11)
#define kReverse (1 << 16) /*action flags*/
#define kRateConvert (1 << 17)
#define kCreateSoundSource (1 << 18)
#define kHighQuality (1 << 22) /*performance flags*/
#define kRealTime (1 << 23)
| Previous | Chapter contents | Chapter top | Section top | Next |